package com.xingxuecn.limit.service;

import com.xingxuecn.limit.common.model.User;
import com.xingxuecn.limit.common.model.vo.Page;

import java.sql.SQLException;
import java.util.List;

/**
 * @author Zy at 2018/9/11 0011 上午 10:58
 */
public interface UserService {
    List<User> findAll() throws SQLException;

    List<User> search(User user) throws SQLException;

    int add(User role) throws SQLException;

    int update(User role) throws SQLException;

    int delete(Integer id) throws SQLException;


    default Page searchPage(User user, Integer page, Integer rows) throws SQLException {
        return null;
    }
}